package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("优惠券和商品信息")
@TableName("sms_coupon_product_relation")
public class SmsCouponCommodity {
    @ApiModelProperty("优惠券和商品ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券ID")
    @TableField(value = "coupon_id")
    private Integer couponId;

    @ApiModelProperty("商品ID")
    @TableField(value = "product_id")
    private Integer productId;

    @ApiModelProperty("商品名称")
    @TableField(value = "product_name")
    private String productName;

    @ApiModelProperty("商品条码")
    @TableField(value = "product_sn")
    private String productSn;

}
